home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
L' Effet Pommier 3
/
L'Effet Pommier - Volume 03.iso
/
Programmation
/
Gooey1.3.1
/
C++ Templates
/
mmCModelessDialog.c
< prev
next >
Wrap
Text File
|
1993-12-17
|
2KB
|
73 lines
$$Message MM Modeless Dialog, mm:mmModelessDialogObject.cp
$$File mm:mmModelessDialogObject.cp
/* mmModelessDialogObject */
/* $CopyRight$ */
/* File name: mmModelessDialogObject
Function: Basic modeless dialog object
History: $Date$ Original by $Author$
*/
#include "mmCommon$Prototype.name$.h" /* Common */
#include "Common$Prototype.name$.h" /* Common */
/* ======================================================= */
/* ======================================================= */
void CmmModelessDialog::Init()
{
inherited::Init();
this->theWindow = nil;
this->ExitDialog = false;
/* Expected to be overridden by the window code */
}
/* ======================================================= */
/* Routine: Moved */
/* Purpose: We were moved, possibly to another screen and screen depth */
void CmmModelessDialog::Moved(Rect *OldRect,WindowPtr theWindow)/* Moved this window */
{
WindowPtr SavePort; /* Place to save the last port */
if (this->theWindow == theWindow) /* Only do if the window is us */
{
GetPort(&SavePort); /* Save the current port */
SetPort(theWindow); /* Set the port to my window */
SetPort(SavePort); /* Restore the old port */
}
}
/* ======================================================= */
void CmmModelessDialog::OpenExtras()
{
}
/* ======================================================= */
void CmmModelessDialog::UpdateExtras()
{
}
/* ======================================================= */
void CmmModelessDialog::FilterTheHit(short *itemHit,EventRecord *myEvent)
{
}
/* ======================================================= */
/* ======================================================= */
$$CloseFile